import express, { NextFunction, Request, Response } from 'express';

const router = express.Router();

// 定义路由规则
/**
 * 登录
 */
router.get('/test', async function (req: Request, res: Response, next: NextFunction) {
  try {
    res.sendSuccess('测试接口成功'); // 发送JWT到客户端
  } catch (err) {
    next(err);
  }
});

// 导出路由器实例
export default router;
